<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:insert="/commen/commen.html"></div>
<form id="updateForm">
    <th:block th:each="u : ${u}">
    <input type="hidden" name="pid" id="pid" th:value="${u.pid}">
    用户名称:<input type="text" name="pname" th:value="${u.pname}"><br>
        职位:<th:block th:each="r : ${r}">
                <input th:if="${list}" checked="checked" type="checkbox" name="roleId" th:value="${r.roleId}">[[${r.roleName}]]
         </th:block>
    </th:block>
</form>
</body>
</html>